package com.woniu.market_stall.mapper;

import com.woniu.market_stall.entity.StallDetail;
import com.woniu.market_stall.vo.StallDetailVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StallDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(StallDetail record);

    StallDetail selectByPrimaryKey(Integer id);

    List<StallDetail> selectAll();

    int updateByPrimaryKey(StallDetail record);

    List<StallDetailVo> selectDetailByCons(@Param(value = "username") String username , @Param(value = "status") String status ,@Param(value = "stallId") int stallId);
}